#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTableWidget>
#include <QPushButton>
#include <QLineEdit>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void create();
    void handler_add_row();
    void handler_sub_row();
    void handler_add_column();
    void handler_sub_column();

private:
    Ui::Widget *ui;
    QTableWidget *table_widget;
    QPushButton *add_row;//新增一行
    QPushButton *sub_row;//删除一行
    QPushButton *add_column;//新增一列
    QPushButton *sub_column;//删除一列
    QLineEdit *line_edit;

};
#endif // WIDGET_H
